<html {$html_attrs}>
<head>
<title>{$caption contacts}</title>
<link REL="stylesheet" href="include/style.css" type="text/css">
<!--[if IE]>
<link REL="stylesheet" href="include/styleIE.css" type="text/css">
<![endif]-->
<style>
.grid_block {  
margin-top:5px;
border-collapse: collapse;
align:center;
width:95%;
border:none;
} 
.grid_block td { 
 padding: 5px; 
 margin: 0px; 
 border: solid black 1px;
}
.grid_block .gridspacing {width:20px;border-top-color:white; border-bottom-color:white;background-color:white}
@media print 
{
	a.pdf {display:none}
}
.printpage {page-break-after:always}
#selpage{margin-left:30px;}
</style> 
</head>
<body style="background-color:white">
{BEGIN body}
{$header}
{BEGIN page}

<h1>{$caption contacts}</h1>
{BEGIN page_number}
<div id='selpage'>{mlang_message PAGE1} {$pageno} {mlang_message PAGE2} {$maxpages} </div>
{END page_number}
{BEGIN pdf_block}
{BEGIN pdflink_block}
<a href=# class=pdf {$pdflink_attrs}>{mlang_message PDF_VIEW}</a>
{END pdflink_block}
{END pdf_block}

{BEGIN grid_block}

<table align="center" cellpadding=5 class="grid_block">
{BEGIN grid_header}
<tr>
{BEGIN record_header}
{BEGIN id_fieldheadercolumn}
	<td>
{BEGIN id_fieldheader}
	<b>{$label contacts id}</b>
{END id_fieldheader}
	</td>
{END id_fieldheadercolumn}
{BEGIN company_id_fieldheadercolumn}
	<td>
{BEGIN company_id_fieldheader}
	<b>{$label contacts company_id}</b>
{END company_id_fieldheader}
	</td>
{END company_id_fieldheadercolumn}
{BEGIN address_fieldheadercolumn}
	<td>
{BEGIN address_fieldheader}
	<b>{$label contacts address}</b>
{END address_fieldheader}
	</td>
{END address_fieldheadercolumn}
{BEGIN city_id_fieldheadercolumn}
	<td>
{BEGIN city_id_fieldheader}
	<b>{$label contacts city_id}</b>
{END city_id_fieldheader}
	</td>
{END city_id_fieldheadercolumn}
{BEGIN port_id_fieldheadercolumn}
	<td>
{BEGIN port_id_fieldheader}
	<b>{$label contacts port_id}</b>
{END port_id_fieldheader}
	</td>
{END port_id_fieldheadercolumn}
{BEGIN phone1_fieldheadercolumn}
	<td>
{BEGIN phone1_fieldheader}
	<b>{$label contacts phone1}</b>
{END phone1_fieldheader}
	</td>
{END phone1_fieldheadercolumn}
{BEGIN phone2_fieldheadercolumn}
	<td>
{BEGIN phone2_fieldheader}
	<b>{$label contacts phone2}</b>
{END phone2_fieldheader}
	</td>
{END phone2_fieldheadercolumn}
{BEGIN fax1_fieldheadercolumn}
	<td>
{BEGIN fax1_fieldheader}
	<b>{$label contacts fax1}</b>
{END fax1_fieldheader}
	</td>
{END fax1_fieldheadercolumn}
{BEGIN fax2_fieldheadercolumn}
	<td>
{BEGIN fax2_fieldheader}
	<b>{$label contacts fax2}</b>
{END fax2_fieldheader}
	</td>
{END fax2_fieldheadercolumn}
{BEGIN email_fieldheadercolumn}
	<td>
{BEGIN email_fieldheader}
	<b>{$label contacts email}</b>
{END email_fieldheader}
	</td>
{END email_fieldheadercolumn}
{BEGIN website_fieldheadercolumn}
	<td>
{BEGIN website_fieldheader}
	<b>{$label contacts website}</b>
{END website_fieldheader}
	</td>
{END website_fieldheadercolumn}
{BEGIN primary_fieldheadercolumn}
	<td>
{BEGIN primary_fieldheader}
	<b>{$label contacts primary}</b>
{END primary_fieldheader}
	</td>
{END primary_fieldheadercolumn}
{BEGIN endrecordheader_block}
	<td class="gridspacing">&nbsp;</td>
{END endrecordheader_block}
{END record_header}
</tr>
{END grid_header}
{BEGIN grid_row}
<tr valign=top {$rowstyle} {$rowattrs}>
{BEGIN grid_record}
{BEGIN id_fieldcolumn}
<td {$id_style}>
{$id_value}
</td>
{END id_fieldcolumn}
{BEGIN company_id_fieldcolumn}
<td {$company_id_style}>
{$company_id_value}
</td>
{END company_id_fieldcolumn}
{BEGIN address_fieldcolumn}
<td {$address_style}>
{$address_value}
</td>
{END address_fieldcolumn}
{BEGIN city_id_fieldcolumn}
<td {$city_id_style}>
{$city_id_value}
</td>
{END city_id_fieldcolumn}
{BEGIN port_id_fieldcolumn}
<td {$port_id_style}>
{$port_id_value}
</td>
{END port_id_fieldcolumn}
{BEGIN phone1_fieldcolumn}
<td {$phone1_style}>
{$phone1_value}
</td>
{END phone1_fieldcolumn}
{BEGIN phone2_fieldcolumn}
<td {$phone2_style}>
{$phone2_value}
</td>
{END phone2_fieldcolumn}
{BEGIN fax1_fieldcolumn}
<td {$fax1_style}>
{$fax1_value}
</td>
{END fax1_fieldcolumn}
{BEGIN fax2_fieldcolumn}
<td {$fax2_style}>
{$fax2_value}
</td>
{END fax2_fieldcolumn}
{BEGIN email_fieldcolumn}
<td {$email_style}>
{$email_value}
</td>
{END email_fieldcolumn}
{BEGIN website_fieldcolumn}
<td {$website_style}>
{$website_value}
</td>
{END website_fieldcolumn}
{BEGIN primary_fieldcolumn}
<td {$primary_style}>
{$primary_value}
</td>
{END primary_fieldcolumn}
{BEGIN endrecord_block}
<td class="gridspacing">&nbsp;</td>
{END endrecord_block}
{END grid_record}
</tr>
{END grid_row}
<!-- totals row -->
</table>
{END grid_block}
{END page}
{$footer}
{END body}
</body>
</html>